C (69/301)

From:Bablos
Date:01 Aug 99 at 14:38:36
Subject:Re: Beginners Woes

From: Bablos <bablos@cableinet.co.uk>

On 01-Aug-99, James McArthur spewed forth the following...
>From: James McArthur <jamesm@it.ntu.edu.au>

>Hi,

>> 1) As I'd asked before, I need to include iff.lib in the linking of a
>> project - I'm OK with linking the lib_.a files, but I'm not sure as to
>> how to convert iff.lib to libiff.a, or how to pass iff.lib onto the
>linker.

>Try,

>gcc -liff (assuming that libiff.a is in usr:lib/ or /usr/lib)

No, my point is that I have iff.lib, but don't know how to make libiff.a,
as it's not included in the iff.library archive. I was told that if my
version of ld was up to scratch, then it can be passed iff.lib, as it
deals with these also.

>> 2) I've just installed the latest snapshot of EGCS in my ADE directory.
>> When invoking the compiler with m86k-amigaos-gcc -V egcs-2.91.66, I
>> keep getting the error that it can't find cc1, and then it tells me that
>> 'file path prefix '/gg/lib/gcc-lib/m68k-amigaos/egcs-2.91.66/' never
>> used'. As this is slightly different from my ADE installation, I wonder
>> if I have to specify path somewhere, so I can change the /gg/ at the
>> beginning to my ADE:? For the moment I've removed the -V option and
>> replaced it with -B<path>, which seems to be OK. Well, for now...

>I had this with an older version of egcs.. I just assigned ADE o the
>gg dir and it went away (dont know if this will work in this case tho)

Nope - I already HAVE and ADE: assignment, and I've never had a /gg/
directory. Should I have to add a GG assign for this to work?
Everything was fine when I was compiling using gcc, but now...

>> 3) Command too long - when combining all the object files, and the
>> command line options, I've been getting this error - any easy way
>> around this?

>Try changing shells to the ksh, or sh.
>Maybe even split the linking into two seperate stages..

>(ie, link half the objects then link the remaining half with this
>new object..)

How do I do this? When I typed beginner I meant BEGINNER! ;o(

>> 4) When I reach the linking process with my project, I'm now getting
>> the error 'collect2: cannot find `ld'', which I wasn't getting before
>> when simply using gcc. Why is this, and how can I rectify the problem?

>GG:bin/ is in your path?
>There is also another path the needs to be set, AFAICR it
>is something like GG:lib/gcc-lib/m68k-amigaos/egcs-2.91.66/bin (or
>something
>along those lines..)

Again, my installation is ADE:, not GG:. I've even tried putting ld into
the directory that cc1 and collect2 are in, but that doesn't solve a
thing - what exactly does collect2 DO, anyway?

>--
>James McArthur
>Amiga 4000/060 CSPPC 150 CyberVision64/3D 4Mb 50Mb
>jamesm@it.ntu.edu.au

>--------------------------- ONElist Sponsor ----------------------------

>Show your ONElist SPIRIT!
>http://www.onelist.com/store/tshirts.html
>With a new ONElist SHIRT available through our website.

>------------------------------------------------------------------------
> -> Spread the URL: http://www.onelist.com/subscribe/amiga-c <-